package com.itheima.reggie.service;

import com.itheima.reggie.common.PageResult;
import com.itheima.reggie.common.R;
import com.itheima.reggie.entity.Category;

import java.util.List;

public interface CategoryService {

    R<String> save(Category category);

    R<PageResult> findPage(Long page, Long pageSize);

    R<String> update(Category category);

    R<String> deleteById(Long id);

    R<List<Category>> list(Category category);
}
